package com.szqhyxj.youxiangju.biz.creditCardEvaluation.buycreditcardEvaluation;

import com.szqhyxj.youxiangju.sys.BaseResult;
import com.szqhyxj.youxiangju.sys.RetrofitFacade;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by leung on 2018/11/9.
 */

public class BuyCreditCardEvaluationModel {
    private interface BuyCreditCardEvaluationService {
        @FormUrlEncoded
        @POST("creditcard/evaluation/payByEvaluation")
        Observable<BaseResult<String>> creditCardEcaluation(
                @Field("payType") String payType
        );

    }

    public static Observable<BaseResult<String>> getcreditCardEcaluation(String paytype) {
        return RetrofitFacade.Companion.getRetrofit().create(BuyCreditCardEvaluationService.class).creditCardEcaluation(
                paytype
        );
    }

}
